<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::ocl::Context Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d5/d96/namespacecv_1_1ocl.html">ocl</a></li><li class="navelem"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../d9/def/classcv_1_1ocl_1_1Context-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::ocl::Context Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../dc/d83/group__core__opencl.html">OpenCL support</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;opencv2/core/ocl.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1e29fc6b44d86782dd90a9fe986c9cd1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a1e29fc6b44d86782dd90a9fe986c9cd1">Context</a> () <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:a1e29fc6b44d86782dd90a9fe986c9cd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1db64b0cb4055c0a3fbeb51fd8682bfa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a1db64b0cb4055c0a3fbeb51fd8682bfa">Context</a> (int dtype)</td></tr>
<tr class="separator:a1db64b0cb4055c0a3fbeb51fd8682bfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f80a4600f75bb25b511e196c331b746"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a2f80a4600f75bb25b511e196c331b746">Context</a> (const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;c)</td></tr>
<tr class="separator:a2f80a4600f75bb25b511e196c331b746"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ecef3725fe839e32289e928c04c0f98"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a0ecef3725fe839e32289e928c04c0f98">Context</a> (<a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&amp;c) <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:a0ecef3725fe839e32289e928c04c0f98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee92207979185b1061db60667a0c22cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#aee92207979185b1061db60667a0c22cf">~Context</a> ()</td></tr>
<tr class="separator:aee92207979185b1061db60667a0c22cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34a5de8c9951363ed10bc44813971d9b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a34a5de8c9951363ed10bc44813971d9b">create</a> ()</td></tr>
<tr class="separator:a34a5de8c9951363ed10bc44813971d9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2662240cf90de0069ed416557ffab93"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#ab2662240cf90de0069ed416557ffab93">create</a> (int dtype)</td></tr>
<tr class="separator:ab2662240cf90de0069ed416557ffab93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79089a04f5cbe11b8ffc14b4bd96615c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a79089a04f5cbe11b8ffc14b4bd96615c">device</a> (size_t idx) const</td></tr>
<tr class="separator:a79089a04f5cbe11b8ffc14b4bd96615c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a579d721330f1480fe04736469bb4e27b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a579d721330f1480fe04736469bb4e27b">empty</a> () const</td></tr>
<tr class="separator:a579d721330f1480fe04736469bb4e27b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aa908e62d1f7aafc16b2a1ee72b31c2"><td class="memItemLeft" align="right" valign="top">Impl *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a4aa908e62d1f7aafc16b2a1ee72b31c2">getImpl</a> () const</td></tr>
<tr class="separator:a4aa908e62d1f7aafc16b2a1ee72b31c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b16748ebf8a27a343c3d702606f5a28"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d88/classcv_1_1ocl_1_1Program.html">Program</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a9b16748ebf8a27a343c3d702606f5a28">getProg</a> (const <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;prog, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;buildopt, <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;errmsg)</td></tr>
<tr class="separator:a9b16748ebf8a27a343c3d702606f5a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb412f36d792b6a219c54d912a9ff43b"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#adb412f36d792b6a219c54d912a9ff43b">ndevices</a> () const</td></tr>
<tr class="separator:adb412f36d792b6a219c54d912a9ff43b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43a8ac6dd8cb0d342d39a65acf402217"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a43a8ac6dd8cb0d342d39a65acf402217">operator=</a> (const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;c)</td></tr>
<tr class="separator:a43a8ac6dd8cb0d342d39a65acf402217"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9776578ff71dec53565e8a05aa95a588"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a9776578ff71dec53565e8a05aa95a588">operator=</a> (<a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&amp;c) <a class="el" href="../../db/de0/group__core__utils.html#ga7b88772bee40b329b585a3a2157abd9b">CV_NOEXCEPT</a></td></tr>
<tr class="separator:a9776578ff71dec53565e8a05aa95a588"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd4507921bb1de80e41b7d39b3d73ce"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#acfd4507921bb1de80e41b7d39b3d73ce">ptr</a> () const</td></tr>
<tr class="separator:acfd4507921bb1de80e41b7d39b3d73ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9d59d02b1305f82fd9ce6f7222cab35"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#ac9d59d02b1305f82fd9ce6f7222cab35">release</a> ()</td></tr>
<tr class="separator:ac9d59d02b1305f82fd9ce6f7222cab35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a103147dc9c81aca85ffe02ee7325176a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a103147dc9c81aca85ffe02ee7325176a">setUseSVM</a> (bool enabled)</td></tr>
<tr class="separator:a103147dc9c81aca85ffe02ee7325176a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f0c81651cac98395c68f88756d92468"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a2f0c81651cac98395c68f88756d92468">unloadProg</a> (<a class="el" href="../../d2/d88/classcv_1_1ocl_1_1Program.html">Program</a> &amp;prog)</td></tr>
<tr class="separator:a2f0c81651cac98395c68f88756d92468"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56a15a1aa2cfc1b430f5aae424397c5c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a56a15a1aa2cfc1b430f5aae424397c5c">useSVM</a> () const</td></tr>
<tr class="separator:a56a15a1aa2cfc1b430f5aae424397c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a71fd118ca17edb79d936a8055441a7db"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a71fd118ca17edb79d936a8055441a7db">create</a> (const std::string &amp;configuration)</td></tr>
<tr class="separator:a71fd118ca17edb79d936a8055441a7db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afca93fd75a481337148310b68b488477"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#afca93fd75a481337148310b68b488477">fromDevice</a> (const <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">ocl::Device</a> &amp;<a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#a79089a04f5cbe11b8ffc14b4bd96615c">device</a>)</td></tr>
<tr class="separator:afca93fd75a481337148310b68b488477"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6570940f8a3e4c8c125e245b646fd80"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#ab6570940f8a3e4c8c125e245b646fd80">fromHandle</a> (void *context)</td></tr>
<tr class="separator:ab6570940f8a3e4c8c125e245b646fd80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7c97731d8c585f12ec2b5e301f6e83c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#ad7c97731d8c585f12ec2b5e301f6e83c">getDefault</a> (bool initialize=true)</td></tr>
<tr class="separator:ad7c97731d8c585f12ec2b5e301f6e83c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa40f58476d9e54c1c58557f24eede23c"><td class="memItemLeft" align="right" valign="top">Impl *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html#aa40f58476d9e54c1c58557f24eede23c">p</a></td></tr>
<tr class="separator:aa40f58476d9e54c1c58557f24eede23c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a1e29fc6b44d86782dd90a9fe986c9cd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e29fc6b44d86782dd90a9fe986c9cd1">&#9670;&nbsp;</a></span>Context() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::Context::Context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a1db64b0cb4055c0a3fbeb51fd8682bfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1db64b0cb4055c0a3fbeb51fd8682bfa">&#9670;&nbsp;</a></span>Context() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::Context::Context </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dtype</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000029">Deprecated:</a></b></dt><dd></dd></dl>

</div>
</div>
<a id="aee92207979185b1061db60667a0c22cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee92207979185b1061db60667a0c22cf">&#9670;&nbsp;</a></span>~Context()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::Context::~Context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2f80a4600f75bb25b511e196c331b746"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f80a4600f75bb25b511e196c331b746">&#9670;&nbsp;</a></span>Context() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::Context::Context </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0ecef3725fe839e32289e928c04c0f98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ecef3725fe839e32289e928c04c0f98">&#9670;&nbsp;</a></span>Context() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::ocl::Context::Context </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a34a5de8c9951363ed10bc44813971d9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34a5de8c9951363ed10bc44813971d9b">&#9670;&nbsp;</a></span>create() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ocl::Context::create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000030">Deprecated:</a></b></dt><dd></dd></dl>

</div>
</div>
<a id="ab2662240cf90de0069ed416557ffab93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2662240cf90de0069ed416557ffab93">&#9670;&nbsp;</a></span>create() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ocl::Context::create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dtype</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000031">Deprecated:</a></b></dt><dd></dd></dl>

</div>
</div>
<a id="a71fd118ca17edb79d936a8055441a7db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71fd118ca17edb79d936a8055441a7db">&#9670;&nbsp;</a></span>create() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> cv::ocl::Context::create </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>configuration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a79089a04f5cbe11b8ffc14b4bd96615c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79089a04f5cbe11b8ffc14b4bd96615c">&#9670;&nbsp;</a></span>device()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">Device</a>&amp; cv::ocl::Context::device </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a579d721330f1480fe04736469bb4e27b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a579d721330f1480fe04736469bb4e27b">&#9670;&nbsp;</a></span>empty()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ocl::Context::empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="afca93fd75a481337148310b68b488477"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afca93fd75a481337148310b68b488477">&#9670;&nbsp;</a></span>fromDevice()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> cv::ocl::Context::fromDevice </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d7/d9f/classcv_1_1ocl_1_1Device.html">ocl::Device</a> &amp;&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab6570940f8a3e4c8c125e245b646fd80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6570940f8a3e4c8c125e245b646fd80">&#9670;&nbsp;</a></span>fromHandle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> cv::ocl::Context::fromHandle </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>OpenCL handle (cl_context). clRetainContext() is called on success </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad7c97731d8c585f12ec2b5e301f6e83c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7c97731d8c585f12ec2b5e301f6e83c">&#9670;&nbsp;</a></span>getDefault()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::ocl::Context::getDefault </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>initialize</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get thread-local OpenCL context (initialize if necessary) </p>

</div>
</div>
<a id="a4aa908e62d1f7aafc16b2a1ee72b31c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4aa908e62d1f7aafc16b2a1ee72b31c2">&#9670;&nbsp;</a></span>getImpl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Impl* cv::ocl::Context::getImpl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9b16748ebf8a27a343c3d702606f5a28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b16748ebf8a27a343c3d702606f5a28">&#9670;&nbsp;</a></span>getProg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d88/classcv_1_1ocl_1_1Program.html">Program</a> cv::ocl::Context::getProg </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d5/de3/classcv_1_1ocl_1_1ProgramSource.html">ProgramSource</a> &amp;&#160;</td>
          <td class="paramname"><em>prog</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>buildopt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>errmsg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="adb412f36d792b6a219c54d912a9ff43b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb412f36d792b6a219c54d912a9ff43b">&#9670;&nbsp;</a></span>ndevices()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t cv::ocl::Context::ndevices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a43a8ac6dd8cb0d342d39a65acf402217"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43a8ac6dd8cb0d342d39a65acf402217">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::ocl::Context::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9776578ff71dec53565e8a05aa95a588"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9776578ff71dec53565e8a05aa95a588">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a>&amp; cv::ocl::Context::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d1/d45/classcv_1_1ocl_1_1Context.html">Context</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="acfd4507921bb1de80e41b7d39b3d73ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfd4507921bb1de80e41b7d39b3d73ce">&#9670;&nbsp;</a></span>ptr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* cv::ocl::Context::ptr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>cl_context value </dd></dl>

</div>
</div>
<a id="ac9d59d02b1305f82fd9ce6f7222cab35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9d59d02b1305f82fd9ce6f7222cab35">&#9670;&nbsp;</a></span>release()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ocl::Context::release </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a103147dc9c81aca85ffe02ee7325176a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a103147dc9c81aca85ffe02ee7325176a">&#9670;&nbsp;</a></span>setUseSVM()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ocl::Context::setUseSVM </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2f0c81651cac98395c68f88756d92468"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f0c81651cac98395c68f88756d92468">&#9670;&nbsp;</a></span>unloadProg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::ocl::Context::unloadProg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d2/d88/classcv_1_1ocl_1_1Program.html">Program</a> &amp;&#160;</td>
          <td class="paramname"><em>prog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a56a15a1aa2cfc1b430f5aae424397c5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56a15a1aa2cfc1b430f5aae424397c5c">&#9670;&nbsp;</a></span>useSVM()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::ocl::Context::useSVM </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aa40f58476d9e54c1c58557f24eede23c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa40f58476d9e54c1c58557f24eede23c">&#9670;&nbsp;</a></span>p</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Impl* cv::ocl::Context::p</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../da/d74/ocl_8hpp.html">ocl.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:48 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
